import { createApp } from 'vue';
//  添加windi
import 'windi.css';
import '@/styles/reset.less';

import App from '@/App.vue';
import router from '@/router';
import store from '@/store';
// 添加 Naive UI
import naive from 'naive-ui';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

const app = createApp(App);
app.use(naive);
app.use(store);
app.use(Antd);
app.use(router);
app.mount('#root');

// 设置iframe样式，不然弹窗会抖动
const iframe = window.parent.document.querySelector('.frame');
if (iframe) {
	iframe.style.overflow = 'auto';
}
